Export/ display module baseline number

Is there a way to export/display the list of modules in a folder and their current baseline number?
SystemAdmin - Mon Mar 15 10:16:26 EDT 2010

Re: Export/ display module baseline number
SystemAdmin - Mon Mar 15 11:01:52 EDT 2010

string version(Module m) is used to get the version for the module
int major(Baseline b) is used to get the major version number
int minor(Baseline b) minor version number

Here is an example of how to display all modules (+version) in a folder + version of Baselines

Folder f = current
Item i
for i in f do {
if (type i == "Formal"){
print name i "\n"
Module m = read fullName i
print "Module version : " version m "\n"
Baseline b
for b in m do {
print "Baseline " major b "." minor b "\n"
}
}
}

Re: Export/ display module baseline number
SystemAdmin - Mon Mar 15 15:34:02 EDT 2010

SystemAdmin - Mon Mar 15 11:01:52 EDT 2010
string version(Module m) is used to get the version for the module
int major(Baseline b) is used to get the major version number
int minor(Baseline b) minor version number

Here is an example of how to display all modules (+version) in a folder + version of Baselines

Folder f = current
Item i
for i in f do {
if (type i == "Formal"){
print name i "\n"
Module m = read fullName i
print "Module version : " version m "\n"
Baseline b
for b in m do {
print "Baseline " major b "." minor b "\n"
}
}
}

Thank you - this does the trick.